package com.youlai.boot.modules.content.converter;

import org.mapstruct.Mapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.youlai.boot.modules.content.model.entity.LzArticle;
import com.youlai.boot.modules.content.model.form.LzArticleForm;

/**
 * 文章对象转换器
 *
 * @author lz0816
 * @since 2025-02-25 16:26
 */
@Mapper(componentModel = "spring")
public interface LzArticleConverter{

    LzArticleForm toForm(LzArticle entity);

    LzArticle toEntity(LzArticleForm formData);
}